<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>获取某个范围的随机整数</title>
    
</head>
<body>
    <script type="text/javascript">
        // 获取随机整数(1~100)
        for(var i=1;i<100;i++){
        console.log(Math.ceil(Math.random()*100));
        }
    </script>
</body>
</html>